<template>
	<view>
		<view class="title_l tCenter">
			{{datainfo.title}}
		</view>
		<view class="content_l">
			<view class="" v-html="datainfo.content">				
			</view>
		</view>
		
		
		<!-- 底部导航 -->
		<footernav pagePath='myyuyue' v-if="isloginstate"></footernav>
	</view>
</template>

<script>
	import {noticeinfo} from '@/common/api/user.js'
	export default {
		data() {
			return {
				isloginstate:true,
				datainfo:'',
			}
		},
		methods: {
			showdata(id){
				noticeinfo({id:id}).then(res=>{
					console.log(res)
					if(res.data.code==200){
						this.datainfo=res.data.data
					}
				})
			},
		},
		onLoad(event) {
			if(!this.islogin()){
				this.isloginstate=false;
			}
			this.showdata(event.id)
		}
	}
</script>

<style>

</style>
